package com.learn.springlearn.event;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class MyEventListener {


    @EventListener
    public void onevent(SpringEventTest event){
        System.out.println("监听到事件"+event.getId());
    }
}
